package Tiles;

import javax.swing.ImageIcon;

import Logic.GameEngine;
import Models.Player;

public class Movement extends Tile {
	private int steps;
	
	public Movement(int x, int y, ImageIcon label, int steps) {
		super(x, y, label);
		
		this.steps = steps;
	}
	
	@Override
	public void rule(GameEngine ge) {
		Player p = ge.getCurrentPlayer();
		System.out.println("Player " + p + " got a move rule and went " + steps);
		ge.move(steps, p);
	}
}
